<include file="Public/header" />
<style>
.shop_sort .shop_sort_title{width:9%;}
</style>
    <div class="comm-top">
        <h4 style="margin-bottom:0">修改密码</h4>
        <div class="add_page_top"></div>
    </div>
    <form id="dataForm" onsubmit="return false;">
        <div class="shop_sort_box">
            <div class="shop_sort">
                <div class="shop_sort_title"><h4>账号：</h4></div>
                <div class="shop_sort_set">
                    <input class="shop_sort_text" name="username" value="{$customer.username}" type="text" readonly/>
                </div>
            </div>
            
			<div class="shop_sort">
                <div class="shop_sort_title"><h4><must>*</must>昵称：</h4></div>
                <div class="shop_sort_set">
                    <input class="shop_sort_text" name="info[my_nickname]" value="{$customer.nickname}" type="text" placeholder="请输入昵称" />
                </div>
            </div>
			<div class="shop_sort">
                <div class="shop_sort_title"><h4><must>*</must>原密码：</h4></div>
                <div class="shop_sort_set">
                    <input class="shop_sort_text" name="info[old_password]" value="" type="password" placeholder="请输入原密码" />
                </div>
            </div>
			<div class="shop_sort">
                <div class="shop_sort_title"><h4><must>*</must>新密码：</h4></div>
                <div class="shop_sort_set">
                    <input class="shop_sort_text" name="info[new_password]" value="" type="password" placeholder="3-10位字母、数字组合" />
                </div>
            </div>
			<div class="shop_sort">
                <div class="shop_sort_title"><h4><must>*</must>确认密码：</h4></div>
                <div class="shop_sort_set">
                    <input class="shop_sort_text" name="info[confirm_password]" value="" type="password" placeholder="请再次输入新密码" />
                </div>
            </div>
            <div class="shop_sort">
                <div class="shop_sort_title">
                    <h4>&nbsp;</h4>
                </div>
                <div class="shop_sort_set">
                    <span onclick="save(this);return false" id="saveBtn" class="btngreen30">完成</span>
                </div>
            </div>
        </div>
    </form>
<script>
function save(obj){
    $.post('{:U("Adminer/edit_pass")}',$('#dataForm').serialize(),function(res){
        if(res.status == 1){
            note_info(res.info,obj);
            setTimeout('window.location.reload()',1200);
        }else{
            note_info(res.info,obj,'warn');
        }
    },'json')
}
</script>
<include file="Public/footer" />